<template>
  <header class="search_box">
    <div class="fenlei">
      <img src="@/assets/image/fenlei.png" alt="" />
    </div>
    <div class="search" @click="jumpTpSearch">
      <i class="iconfont icon-a-zoomin serch_icon"></i>
      <input class="search_text" type="text" />
    </div>
    <div class="chat">
      <i class="iconfont icon-liaotian"></i>
    </div>
  </header>
</template>

<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const jumpTpSearch = () => {
  router.push({ path: '/search' });
}
</script>

<style scoped>
.search_box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.235rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f1f1f1;
  box-sizing: border-box;
  border-bottom: 1px solid #e5e5e5;
  padding: 5px;
}

.fenlei {
  display: flex;
  align-items: center;
  height: 100%;
}

.fenlei img {
  width: .625rem;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 80%;
  height: 100%;
}
.serch_icon {
    position: absolute;
    left: 3px;
}
.search_text {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
}
</style>
